package com.tfy.liquor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
@ServletComponentScan(basePackages = {"com.tfy.liquor.config"}) //这一句完成了配置，Springboot的”懒理念“真的厉害。
@EnableScheduling// 开启定时任务
@SpringBootApplication
public class LiquorMallApplication {
    private final static Logger logger = LoggerFactory.getLogger(LiquorMallApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(LiquorMallApplication.class, args);
        logger.warn("程序启动！");
//        logger.error("程序启动！");
    }



}
